package com.zjj.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping
@ResponseBody
public class UserController {
    @RequestMapping(value = "select",produces = "Application/json;charset=UTF-8")
    public String say(){
        System.out.println("hi springMVC select");
        return "查询用户";
    }

    @RequestMapping(value = "add",produces = "Application/json;charset=UTF-8")
    public String sayAdd(){
        System.out.println("hi springMVC  ADD");
        return "新增用户";
    }

    @RequestMapping(value = "update",produces = "Application/json;charset=UTF-8")
    public String sayUpdate(){
        System.out.println("hi springMVC  UPDATE");
        return "修改用户";
    }

    @RequestMapping(value = "del",produces = "Application/json;charset=UTF-8")
    public String sayDel(){
        System.out.println("hi springMVC  DEL");
        return "删除用户";
    }
}
